package com.sanyang.logistics.zhd.dao;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.OwnerTypeDim;
import com.sanyang.logistics.pojo.TruckDim;
import com.sanyang.logistics.zhd.mapper.TruckDimMapper;
@Repository("truckDao")
public class TruckDimImpl implements ITruckDimDao {

	@Autowired
	private TruckDimMapper truckmapper;
	
	/**
	 * 查询全部车辆
	 * @return
	 */
	@Override
	public List<TruckDim> getAllTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		return truckmapper.getAllTruck(truckDim);
	}

	@Override
	public TruckDim getTruck(Integer truck_id) {
		// TODO Auto-generated method stub
		return truckmapper.getTruck(truck_id);
	}

	@Override
	public void updateTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		truckmapper.updateTruck(truckDim);
	}

	@Override
	public void addTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		truckmapper.addTruck(truckDim);
	}

	@Override
	public void deleteTurck(Integer truck_id) {
		// TODO Auto-generated method stub
		truckmapper.deleteTurck(truck_id);
	}

	@Override
	public TruckDim getTruckLicense(String license) {
		// TODO Auto-generated method stub
		return truckmapper.getTruckLicense(license);
	}

	@Override
	public List<OwnerTypeDim> getAllOwnerTypeDim() {
		// TODO Auto-generated method stub
		return truckmapper.getAllOwnerTypeDim();
	}

}
